package com.tianpengtech.common.model.platformincome;
import com.tianpengtech.common.model.AbstractBaseModel;
/**
 *实体类名-平台收入表
 * fair_platform_income
 *
 * @since Wed Jan 17 01:15:34 HKT 2018
 */
public class PlatFormIncome extends AbstractBaseModel< PlatFormIncome > {

	/**
	 *
	 */
	private static final long serialVersionUID = 1L;
	public static final PlatFormIncome dao = new PlatFormIncome();


	public static final String ID = "id"; //
	public static final String WH_ID = "wh_id"; // 提现网红ID
	public static final String MONEY = "money"; // 平台收入
	public static final String STATUS ="status"; //状态值
	public static final String WITH_DRAW_MONEY ="with_draw_money"; //提现金额

	public static final int STATUS_ERROR=0;
	public static final int STATUS_OK=1;

	public String status(){
		String result="未知状态";
		if(getInt(STATUS)==STATUS_ERROR){
			result="收取失败";
		}else if(getInt(STATUS)==STATUS_OK){
			result="收取成功";
		}
		return result;
	}

	@Override
	public String tableName() {
		return "fair_platform_income";
	}

}